package top.lanscarlos.ashcraft.service;

import com.sun.istack.NotNull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.lanscarlos.ashcraft.repository.LogRepository;

/**
 * Ashcraft
 * top.lanscarlos.ashcraft.service
 *
 * @author Lanscarlos
 * @since 2022-05-25 16:15
 */
@Service
public class LogService {
    @Autowired
    private LogRepository repository;

    public Object login(
            @NotNull String phone,
            @NotNull String password
    ) {
        return repository.findLogInstance(phone, password);
    }
}
